<!-- @format -->

<template>
  <div>
    <a v-bind:href="url">百度一下</a>
    <a :href="url">百度一下</a>

    <!-- 写死的 -->
    <a href="url">百度一下</a>
    <!-- 动态绑定 -->
    <a :href="url">百度一下</a>

    <img
      :src="imgUrl"
      alt="" />
  </div>
</template>

<script>
  export default {
    data() {
      return {
        url: 'http://www.baidu.com',
        imgUrl:
          'https://so1.360tres.com/dr/270_500_/t0155dc35ea4eba6c26.jpg?size=460x460'
      }
    }
  }
</script>

<style></style>
